﻿@model UserControllerModel.Index
<div class="page">
    <div class="pageHeader">
        <form id="pagerForm" onsubmit="return navTabSearch(this);" action="/game/user" method="post">
        <div class="searchBar">
            <ul class="searchContent">
                <li>
                    <label>
                        用户名：</label>
                    <input name="Uid" type="text" maxlength="20" value="@Model.Uid" />
                </li>
                <li>
                    <label>
                        游戏区服：
                    </label>
                    <select name="ServerId">
                        <option value="" @(Model.ServerId == 0 ? "selected=selected" : string.Empty)>请选择游戏区服</option>
                        @foreach (var o in Model.Games)
                        {
                            <optgroup label="@o.Name">
                                @foreach (var i in o.Servers)
                                { 
                                    <option value ="@(i.Id)" @(Model.ServerId == i.Id ? "selected=selected" : string.Empty)>@(o.Name)-- @i.Name</option>
                                }
                            </optgroup>
                        }
                    </select>
                </li>
                <li>
                    <label>
                        等 级：</label>
                    <input name="Level" type="text" maxlength="2" value="@Model.Level" />
                </li>
            </ul>
            <div class="subBar">
                <ul>
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit">
                                    检索</button>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
        </form>
    </div>
    <div class="PageContent">
        <div class="panelBar">
            <ul class="toolBar">
                <li><a class="add" href="/game/user/export/" target="_blank"><span>导 出</span></a></li>
            </ul>
        </div>
        <table class="table" layouth="138" width="100%">
            <thead>
                <tr>
                    <th width="80">
                        UserId
                    </th>
                    <th width="320">
                        GUID
                    </th>
                    <th width="180">
                        角色名称
                    </th>
                    <th width="80">
                        Vip
                    </th>
                    <th width="100">
                        等级
                    </th>
                    <th width="115">
                        货币
                    </th>
                    <th>
                        其它信息
                    </th>
                    <th width="180">
                        最后一次登录时间
                    </th>
                    <th width="160">
                        最后更新时间
                    </th>
                    <th width="160">
                        创建时间
                    </th>
                </tr>
            </thead>
            <tbody>
                @foreach (var o in Model.Users)
                {
                    <tr target="param" rel="@o.Id">
                        <td>@o.UserId
                        </td>
                        <td>@o.Guid
                        </td>
                        <td>@o.RoleName
                        </td>
                        <td>@o.Vip
                        </td>
                        <td>@o.Level
                        </td>
                        <td>@o.Currency
                        </td>
                        <td>@o.Extra
                        </td>
                        <td>
                            @o.LastLoginOn.ToString(string.Empty)
                        </td>
                        <td>
                            @o.ModifiedOn.ToString(string.Empty)
                        </td>
                        <td>
                            @o.CreatedOn.ToString(string.Empty)
                        </td>
                    </tr>
                }
            </tbody>
        </table>
    </div>
</div>
